prefix=@prefix@
# Like `prefix', but used for architecture-specific files.
-exec_prefix=${prefix}
+exec_prefix=@exec_prefix@
# Where to install Emacs and other binaries that people will want to
# run directly (like etags).
# ==================== Utility Programs for the Build ====================
# Allow the user to specify the install program.
-INSTALL = install -c
-INSTALL_PROGRAM = ${INSTALL}
-INSTALL_DATA = ${INSTALL}
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_DATA = @INSTALL_DATA@
# ============================= Targets ==============================
### Establish some default values.
prefix='/usr/local'
+exec_prefix='${prefix}'
while [ $# != 0 ]; do
arg="$1"
prefix="${val}"
;;
+ ## Has the user specifiec an installation prefix?
+ "exec_prefix" )
+ ## If the value was omitted, get it from the next argument.
+ if [ "${valomitted}" = "yes" ]; then
+ ## Get the next argument from the argument list, if there is one.
+ if [ $# = 1 ]; then
+ (echo "${progname}: You must give a value for the \`--${optname}' option, as in
+ \`--${optname}=FOO'."
+ echo "${short_usage}") >&2
+ exit 1
+ fi
+ shift; val="$1"
+ fi
+ exec_prefix="${val}"
+ ;;
+
## Has the user asked for some help?
"usage" | "help" )
echo "${short_usage}" | more
dnl checks for programs
AC_LN_S
AC_PROG_CPP
+AC_PROG_INSTALL
dnl checks for UNIX variants that set `DEFS'
AC_SUBST(C_SWITCH_X_SITE)
AC_SUBST(CFLAGS)
AC_SUBST(prefix)
+AC_SUBST(exec_prefix)
AC_DEFINE_UNQUOTED(config_machfile, "\"${machfile}\"")
AC_DEFINE_UNQUOTED(config_opsysfile, "\"${opsysfile}\"")